﻿picShare.service('localStorageSvc', function () {


    return {
        putUserInfo: function (userId, userName, sessionKey, albumNames) {
            localStorage.setItem("sessionKey", sessionKey);
            localStorage.setItem("userId", userId);
            localStorage.setItem("userName", userName);
            localStorage.setItem("albumNames", albumNames);
        },
        deleteUserInfo: function () {
            localStorage.removeItem("sessionKey");
            localStorage.removeItem("userId");
            localStorage.removeItem("userName");
            localStorage.removeItem("albumNames");
        },
    };

});